import { httpGet, httpPost } from "@/appBase/request";
import { toData, toPageData, toPageQueryParam } from "@/appBase/utils";

/**
 * 财务单据申请通过
 * @param {Object} queryParam
 * @param {Number} queryParam.orderId 单据Id
 * @param {String} queryParam.comment 审批意见
 * @returns
 */
export function financeOrderAgree(queryParam) {
    const result = {"code":400,"msg":"请选择需要处理的单据","data":null}
    return Promise.resolve(toData(result));
    // return httpPost(`/finance/order/agree`, queryParam).then((result) => toData(result));
}

/**
 * 财务单据申请驳回
 * @param {Object} queryParam
 * @param {Number} queryParam.orderId 单据Id
 * @param {String} queryParam.comment 审批意见
 * @returns
 */
export function financeOrderReject(queryParam) {
    const result = {"code":400,"msg":"请选择需要处理的单据","data":null}
    return Promise.resolve(toData(result));
    // return httpPost(`/finance/order/reject`, queryParam).then((result) => toData(result));
}